﻿using UnityEngine;
using System.Collections;

public class Sounds : MonoBehaviour {

	public AudioClip test;

	public AudioClip[] colors;// 0 red 1 black 2 white 3 green 4 yellow 5 blue 6 magenta 7 orange
	public AudioClip[] numbers;

	public void PlaySound(bool chosen,int number,int color)//chosen para saber si es numero o color
	{
		if (chosen)//si es color
		{
			audio.PlayOneShot(colors[color]);
		}
		else// si es numero
		{
			audio.PlayOneShot(numbers[number]);
		}
	}
}
